﻿using Entity.BaseEntitys;
using Repository.RepositoryExtension;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Utility.Helper;

namespace Application.UserServices.Dto
{
    public class UserByPageQueryDto: PageResult
    {
        public UserByPageQueryDto()
        {
            if (Sorting.IsNullOrEmpty())
                Sorting = "CreateTime";
             
            OrderByDescending = true;
        }

        public string UserName { get; set; } = "";


        public string EmailAddress { get; set; } = "";

        public string Phone { get; set; } = "";
    }

    public class UserByPageOutDto
    {
        public Guid Id { get; set; }    

        public byte[] TimeStamp { get; set; }

        public string UserName { get; set; } = "";


        public string EmailAddress { get; set; } = "";


        public string Phone { get; set; } = "";

        public string SplitArea { get; set; }

        public  DateTime CreateTime { get; set; }

        public Guid[] RoleIds { get; set; }

        public string RoleNames { get; set; }
    }
}
